package com.platform.service.impl;

import com.platform.dao.ProductCateDao;
import com.platform.entity.ProductCateEntity;
import com.platform.service.ProductCateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-04-10 13:51:33
 */
@Service("productCateService")
public class ProductCateServiceImpl implements ProductCateService {
    @Autowired
    private ProductCateDao productCateDao;

    @Override
    public ProductCateEntity queryObject(Long productId) {
        return productCateDao.queryObject(productId);
    }

    @Override
    public List<ProductCateEntity> queryList(Map<String, Object> map) {
        return productCateDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return productCateDao.queryTotal(map);
    }

    @Override
    public int save(ProductCateEntity tProductCate) {
        return productCateDao.save(tProductCate);
    }

    @Override
    public int update(ProductCateEntity tProductCate) {
        return productCateDao.update(tProductCate);
    }

    @Override
    public int delete(Long productId) {
        return productCateDao.delete(productId);
    }

    @Override
    public int deleteBatch(Long[] productIds) {
        return productCateDao.deleteBatch(productIds);
    }
}
